package com.engineering.elink.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.domain.Sign;

public interface SignMapper {
    int deleteByPrimaryKey(Integer signRecordId);

    int insert(Sign record);

    int insertSelective(Sign record);

    Sign selectByPrimaryKey(Integer signRecordId);

    int updateByPrimaryKeySelective(Sign record);

    int updateByPrimaryKey(Sign record);

    List<Sign> selectByUserId(String userId);
    
    Sign selectLastSignByUserId(String userId);
    
    Sign selectByUserIdAndDateTime (@Param("userId") String userId,@Param("dateTime")  Date dateTime);
}